package com.yzy.soft.common.persistence.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yzy.soft.common.persistence.model.MetadataDatabase;
import com.yzy.soft.system.freemarker.DBInfo;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 *<p>
 * 描述：MetadetaDatabaseMapper 接口
 * @author Yinzhiyuan
 * @date 2018-12-19 01:44:11
 */
public interface MetadataDatabaseMapper extends BaseMapper<MetadataDatabase> {
    Integer status(@Param("id") Integer id);

    Integer batchNuUseIds(@Param("ids") List<Integer> ids);
    Integer batchUseIds(@Param("ids") List<Integer> ids);

    void deleteByCompanyId(@Param("companyId") Integer companyId);
    List<MetadataDatabase> selectAllDatabase();
    List<MetadataDatabase> selectDropDownDatabaseByUserId();

    DBInfo findNecessaryInfo(@Param("databaseId")Integer databaseId);
}
